<template>
	<view class="container">
		<view class="content">
			<view class="infor-item border-bottom">
				<view class="titl">商家名称</view>
				<view class="con">{{details.name || ''}}</view>
			</view>
			<view class="infor-item border-bottom">
				<view class="titl">WIFI</view>
				<view class="con">{{details.wifiAccountNo || ''}}</view>
			</view>
			<view class="infor-item border-bottom">
				<view class="titl">WIFI密码</view>
				<view class="con">{{details.wifiPasssword || ''}}</view>
			</view>
			<view class="infor-item border-bottom">
				<view class="titl">外线电话</view>
				<view class="con">{{details.phone || ''}}</view>
			</view>
			<view class="infor-item border-bottom">
				<view class="titl">内线电话</view>
				<view class="con">{{details.innerPhone || ''}}</view>
			</view>
			<view class="infor-item border-bottom">
				<view class="titl">地址</view>
				<view class="con">{{details.provinceName || ''}}{{details.cityName || ''}}{{details.districtName || ''}}{{details.address || ''}}</view>
			</view>
			<view class="infor-item border-bottom">
				<view class="titl">备注</view>
				<view class="con">{{details.memo || ''}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				details: {}
			}
		},
		onLoad(option) {
			if (option.details) {
				this.details = JSON.parse(decodeURIComponent(option.details))
			}
			
			console.log(this.details)
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		margin: 30rpx 25rpx 0;
		background-color: #fff;
		border-radius: 10rpx;
		overflow: hidden;
		.infor-item{
			position: relative;
			display: flex;
			justify-content: space-between;
			padding: 42rpx 30rpx 39rpx 28rpx;
			line-height: 38rpx;
			.titl{
				min-width: 120rpx;
				font-size: 28rpx;
				color: #999999;
			}
			.con{
				font-size: 28rpx;
				color: #333333;
			}
			&::after{
				left: 30rpx;
				right: 30rpx;
			}
		}
	}
</style>
